from flask import Blueprint
from flask_restful import Api
from app.auth.controller import Register, Login
from app.middlewares import user_model

auth = Blueprint('auth', __name__, url_prefix='/auth')
auth_api = Api(auth)

# 用户注册
auth_api.add_resource(Register, '/register')

# 用户登录
auth_api.add_resource(Login, '/login')

user_model(auth)

